<template>
	<view class="nodata">
		<image src="/static/images/empty-image-default.png"
			mode=""></image>
		<view class="txt">
			<text>{{title}}</text>
		</view>
	</view>
</template>

<script setup>
	defineProps({
		title: {
			type: String,
			default: "暂无数据~~"
		}
	})
</script>

<style lang="scss"
	scoped>
	.nodata {
		display: flex;
		flex-direction: column;
		align-items: center;

		image {
			width: 80%;
			margin: 0 auto;
		}

		.txt {
			font-size: 24rpx;
			color: #999;
		}
	}
</style>